package com.zmj.sy.mom.srv.aps.controller;

import com.zmj.sy.mom.srv.aps.bean.vo.base.BaseIdReqVo;
import com.zmj.sy.mom.srv.aps.bean.vo.base.BaseResVo;
import com.zmj.sy.mom.srv.aps.service.FixService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RequiredArgsConstructor
@Api(tags = "fix")
@RestController
@RequestMapping("/fix")
public class FixController {

    private final FixService fixService;

    @ApiOperation("修复套料推送")
    @GetMapping("/nestPush")
    public BaseResVo nestPush(BaseIdReqVo reqVo) {
        fixService.nestPush(reqVo.getId());
        return BaseResVo.ok();
    }
}
